import 'package:flutterproject/generated/json/base/json_field.dart';
import 'package:flutterproject/generated/json/order_success_bean.g.dart';
import 'dart:convert';

@JsonSerializable()
class OrderSuccessBean {

	int? orderId;
	String? orderNo;
  
  OrderSuccessBean();

  factory OrderSuccessBean.fromJson(Map<String, dynamic> json) => $OrderSuccessBeanFromJson(json);

  Map<String, dynamic> toJson() => $OrderSuccessBeanToJson(this);

  OrderSuccessBean copyWith({int? orderId, String? orderNo}) {
      return OrderSuccessBean()..orderId= orderId ?? this.orderId
			..orderNo= orderNo ?? this.orderNo;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}